﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace EcoSystem
{
    /// <summary>
    /// 取号配置服务接口定义类
    /// </summary>
    public interface ITakeConfigAppService : ICrudAppService<
        TakeConfigDto,
        Guid,
        GetTakeConfigInput,
        CreateOrUpdateTakeConfigDto,
        CreateOrUpdateTakeConfigDto>
    {
        /// <summary>
        /// 获取取号流水号
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public Task<TakeNumberDto> GetNextTakeNumberAsync(GetNextTakeNumberInputDto input);

        /// <summary>
        /// 取号
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public Task<string> CreateTakeNumberAsync(CreateTakeNumberInputDto input);

        /// <summary>
        /// 批量取号
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public Task<List<string>> CreateTakeNumbersAsync(BatchCreateTakeNumberInputDto input);
    }
}
